package com.usefullc.crawler.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usefullc.crawler.domain.ActiveInstance;

public interface ActiveInstanceMapper extends BaseMapper<ActiveInstance> {

//useful_auto_generate_section_start


//useful_auto_generate_section_end

    //    @Query(value = "update `crawler_active_instance` t set t.taskStatus = ?2,t.gmtModified=now(6) where t.id = ?1 and t.taskStatus != ?2 ",nativeQuery = true)
    int updateTaskStatus(Long id, Integer taskStatus);

    int updateTaskStatusAndStatus(Long id, Integer taskStatus,Integer status);

    int updateStatus(Long id, Integer status);
}
